package com.tek.ding.faceding.bean;

import android.os.Parcel;
import android.os.Parcelable;


/**
 * 会员信息表
 */
public class Members implements Parcelable {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * uuid
     */
    private String uid;

    /**
     * 真实全名
     */
    private String fullName;

    /**
     * 系统名称
     */
    private String memberName;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 出生日期
     */
    private String dateOfBirth;

    /**
     * 性别
     */
    private Integer sex;

    /**
     * 学校ID
     */
    private Long schoolId;

    /**
     * 年级，每年自动增长，可以手动调整
     */
    private Integer grade;

    /**
     * 班级
     */
    private Integer classNum;

    /**
     * 小区ID
     */
    private Long subdistrictId;

    /**
     * 门店ID
     */
    private Long storeId;

    /**
     * 门店名称
     */
    private String storeName;

    /**
     * 会员级别
     */
    private Integer memberLevel;

    /**
     * 是否禁用
     * 0.启用 -1.禁用
     */
    private Integer enabled;

    /**
     * 读书本数
     */
    private Integer readBooks;

    /**
     * 读书天数
     */
    private Integer readDays;

    /**
     * 读书字数
     * 单位：万字
     */
    private Double readWords;

    /**
     * 在店状态
     * 1.在店 2.离店
     */
    private Integer storeStatus;

    /**
     * 照片代码，用于人脸识别
     */
    private String photoCode;

    /**
     * 是否上传人脸识别
     * -1或null:未上传 1：已上传
     */
    private Integer faceUpStatus;

    /**
     * 人脸数据id（备用）
     */
    private String faceId;

    /**
     * 人脸样本img
     */
    private String faceImg;

    /**
     * 在店状态时间
     */
    private String storeStatusTime;

    /**
     * 会员收费方式名
     */
    private String costName;

    /**
     *
     */
    private Long supervisorId;

    /**
     *
     */
    private String tmpServices;

    /**
     * 修改时间
     */
    private String editTime;

    /**
     * 添加时间
     */
    private String addTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getDateOfBirth() {
        return dateOfBirth;
    }

    public void setDateOfBirth(String dateOfBirth) {
        this.dateOfBirth = dateOfBirth;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public Integer getClassNum() {
        return classNum;
    }

    public void setClassNum(Integer classNum) {
        this.classNum = classNum;
    }

    public Long getSubdistrictId() {
        return subdistrictId;
    }

    public void setSubdistrictId(Long subdistrictId) {
        this.subdistrictId = subdistrictId;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public Integer getMemberLevel() {
        return memberLevel;
    }

    public void setMemberLevel(Integer memberLevel) {
        this.memberLevel = memberLevel;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public Integer getReadBooks() {
        return readBooks;
    }

    public void setReadBooks(Integer readBooks) {
        this.readBooks = readBooks;
    }

    public Integer getReadDays() {
        return readDays;
    }

    public void setReadDays(Integer readDays) {
        this.readDays = readDays;
    }

    public Double getReadWords() {
        return readWords;
    }

    public void setReadWords(Double readWords) {
        this.readWords = readWords;
    }

    public Integer getStoreStatus() {
        return storeStatus;
    }

    public void setStoreStatus(Integer storeStatus) {
        this.storeStatus = storeStatus;
    }

    public String getPhotoCode() {
        return photoCode;
    }

    public void setPhotoCode(String photoCode) {
        this.photoCode = photoCode;
    }

    public Integer getFaceUpStatus() {
        return faceUpStatus;
    }

    public void setFaceUpStatus(Integer faceUpStatus) {
        this.faceUpStatus = faceUpStatus;
    }

    public String getFaceId() {
        return faceId;
    }

    public void setFaceId(String faceId) {
        this.faceId = faceId;
    }

    public String getFaceImg() {
        return faceImg;
    }

    public void setFaceImg(String faceImg) {
        this.faceImg = faceImg;
    }

    public String getStoreStatusTime() {
        return storeStatusTime;
    }

    public void setStoreStatusTime(String storeStatusTime) {
        this.storeStatusTime = storeStatusTime;
    }

    public String getCostName() {
        return costName;
    }

    public void setCostName(String costName) {
        this.costName = costName;
    }

    public Long getSupervisorId() {
        return supervisorId;
    }

    public void setSupervisorId(Long supervisorId) {
        this.supervisorId = supervisorId;
    }

    public String getTmpServices() {
        return tmpServices;
    }

    public void setTmpServices(String tmpServices) {
        this.tmpServices = tmpServices;
    }

    public String getEditTime() {
        return editTime;
    }

    public void setEditTime(String editTime) {
        this.editTime = editTime;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeString(this.uid);
        dest.writeString(this.fullName);
        dest.writeString(this.memberName);
        dest.writeString(this.nickName);
        dest.writeString(this.dateOfBirth);
        dest.writeValue(this.sex);
        dest.writeValue(this.schoolId);
        dest.writeValue(this.grade);
        dest.writeValue(this.classNum);
        dest.writeValue(this.subdistrictId);
        dest.writeValue(this.storeId);
        dest.writeString(this.storeName);
        dest.writeValue(this.memberLevel);
        dest.writeValue(this.enabled);
        dest.writeValue(this.readBooks);
        dest.writeValue(this.readDays);
        dest.writeValue(this.readWords);
        dest.writeValue(this.storeStatus);
        dest.writeString(this.photoCode);
        dest.writeValue(this.faceUpStatus);
        dest.writeString(this.faceId);
        dest.writeString(this.faceImg);
        dest.writeString(this.storeStatusTime);
        dest.writeString(this.costName);
        dest.writeValue(this.supervisorId);
        dest.writeString(this.tmpServices);
        dest.writeString(this.editTime);
        dest.writeString(this.addTime);
    }

    public Members() {
    }

    protected Members(Parcel in) {
        this.id = (Long) in.readValue(Long.class.getClassLoader());
        this.uid = in.readString();
        this.fullName = in.readString();
        this.memberName = in.readString();
        this.nickName = in.readString();
        this.dateOfBirth = in.readString();
        this.sex = (Integer) in.readValue(Integer.class.getClassLoader());
        this.schoolId = (Long) in.readValue(Long.class.getClassLoader());
        this.grade = (Integer) in.readValue(Integer.class.getClassLoader());
        this.classNum = (Integer) in.readValue(Integer.class.getClassLoader());
        this.subdistrictId = (Long) in.readValue(Long.class.getClassLoader());
        this.storeId = (Long) in.readValue(Long.class.getClassLoader());
        this.storeName = in.readString();
        this.memberLevel = (Integer) in.readValue(Integer.class.getClassLoader());
        this.enabled = (Integer) in.readValue(Integer.class.getClassLoader());
        this.readBooks = (Integer) in.readValue(Integer.class.getClassLoader());
        this.readDays = (Integer) in.readValue(Integer.class.getClassLoader());
        this.readWords = (Double) in.readValue(Double.class.getClassLoader());
        this.storeStatus = (Integer) in.readValue(Integer.class.getClassLoader());
        this.photoCode = in.readString();
        this.faceUpStatus = (Integer) in.readValue(Integer.class.getClassLoader());
        this.faceId = in.readString();
        this.faceImg = in.readString();
        this.storeStatusTime = in.readString();
        this.costName = in.readString();
        this.supervisorId = (Long) in.readValue(Long.class.getClassLoader());
        this.tmpServices = in.readString();
        this.editTime = in.readString();
        this.addTime = in.readString();
    }

    public static final Creator<Members> CREATOR = new Creator<Members>() {
        @Override
        public Members createFromParcel(Parcel source) {
            return new Members(source);
        }

        @Override
        public Members[] newArray(int size) {
            return new Members[size];
        }
    };
}
